// 引入 request 文件
import request from './request.js'

// // 以下 api 为博主项目示例，实际与项目相匹配

// // 分页查询学习列表
export const login = (params) => {
    return request({
        url: 'api/wechat/login',
        method: 'POST',
        data: params
    })
}
//获取授权
export const getauthorization = (params) => {
    return request({
        url: 'api/wechat/getauthorization',
        method: 'POST',
        data: params
    })
}
// 获取是否授权过
export const getwindowauthstatus = (params) => {
    return request({
        url: 'api/wechat/getwindowauthstatus',
        method: 'POST',
        data: params
    })
}
// 获取商品列表
export const getitemlist = (params) => {
    return request({
        url: 'api/wechat/getitemlist',
        method: 'POST',
        data: params
    })
}
//添加商品
export const windowadd = (params) => {
    return request({
        url: 'api/wechat/windowadd',
        method: 'POST',
        data: params
    })
}
// 获取橱窗商品
export const windowgatall = (params) => {
    return request({
        url: 'api/wechat/windowgatall',
        method: 'POST',
        data: params
    })
}